home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
404 Jogos
/
CLJG.iso
/
Aventura
/
FireMan.swf
/
scripts
/
frame_1179
/
PlaceObject2_1100_85
/
CLIPACTIONRECORD onClipEvent(enterFrame).as
next >
Wrap
Text File
|
2008-09-12
|
604b
|
29 lines
onClipEvent(enterFrame){
function killme()
{
return dx > 0 && _X > 256 || dx < 0 && _X < 0 || dy < 0 && _Y < 0 || dy > 0 && dy > 224;
}
_visible = this.hitTest(_root.mascara);
_X = _X - heroe.scrollspeed;
if(mover)
{
_X = _X + dx;
_Y = _Y + dy;
if(this.hotzone.hitTest(heroe.sprite.hotzone))
{
heroe.damage = 3;
heroe.hitted = true;
}
if(killme())
{
mover = false;
borrar = true;
}
}
if(borrar)
{
this.removeMovieClip();
borrar = false;
}
}